from django.db import models

# Create your models here.
class User(models.Model):
    STATUS_CHOICES = (1,'未激活'),(2,'激活'),(3,'拉黑')
    username = models.CharField(max_length=10)
    password = models.CharField(max_length=128)
    email = models.EmailField(max_length=128)
    photo = models.ImageField(upload_to='static/photo',null=True)
    phone = models.CharField(max_length=11)
    status = models.SmallIntegerField(choices=STATUS_CHOICES)
    class Meta:
        db_table = 'user'